package com.foreknow.mapping;

import com.foreknow.bean.Sys_user;

import java.sql.ResultSet;
import java.sql.SQLException;

public class Sys_userMapping implements EntityMapping {
    @Override
    public Object mapping(ResultSet rs) throws SQLException {
        Sys_user sys_user = new Sys_user();
        sys_user.setId(rs.getInt("ID"));
        sys_user.setName(rs.getString("NAME"));
        sys_user.setSex(rs.getString("SEX"));
        sys_user.setAge(rs.getInt("AGE"));
        sys_user.setMarry(rs.getString("MARRY"));
        sys_user.setAddress(rs.getString("ADDRESS"));
        sys_user.setPhone(rs.getString("PHONE"));
        return sys_user;
    }
}
